const mongoose = require("mongoose");
const mongo_url = "mongodb://localhost:27017/postEvaluation";

mongoose
  .connect(mongo_url, { useNewUrlParser: true, useUnifiedTopology: true })
  .then((con) => {
    console.log("连接成功！");
  })
  .catch((error) => {
    console.log("Altas Cluster connection error", error);
  });

module.exports = mongoose;
